package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**标书类*/
@Data
@ApiModel(value = "标书类")
@TableName("t_biaoshu")
public class BiaoShuBean {
    /**标书编号*/
    @ApiModelProperty(hidden = true)
    @TableId(value = "pk_biaoShuId",type = IdType.AUTO)
    private Integer id;
    /**供应商名称*/
    @ApiModelProperty(value = "采购日期")
    @TableField("bs_supplierName")
    private String supplierName;
    /**供应商类型*/
    @ApiModelProperty(value = "采购日期")
    @TableField("bs_supplierType")
    private String supplierType;
    /**供应商规模*/
    @ApiModelProperty(value = "采购日期")
    @TableField("bs_supplierSize")
    private String supplierSize;
    /**商品编号*/
    @ApiModelProperty(value = "商品编号")
    @TableField("fk_goodsId")
    private Integer goodsId;
    /**采购总数*/
    @ApiModelProperty(value = "采购总数")
    @TableField("bs_allNum")
    private Integer allNum;
    /**当前入库数*/
    @ApiModelProperty(value = "当前入库数")
    @TableField("bs_inNum")
    private Integer inNum;
    /**入库截止日期*/
    @ApiModelProperty(value = "入库截止日期")
    @TableField("bs_endDate")
    private LocalDate endDate;
    /**状态*/
    @ApiModelProperty(value = "状态")
    @TableField("bs_status")
    private String status;
    /**采购价格*/
    @ApiModelProperty(value = "采购价格")
    @TableField("bs_price")
    private double price;

    public BiaoShuBean() {
    }

    public BiaoShuBean(String supplierName, String supplierType, String supplierSize, Integer goodsId, Integer allNum, Integer inNum, LocalDate endDate) {
        this.supplierName = supplierName;
        this.supplierType = supplierType;
        this.supplierSize = supplierSize;
        this.goodsId = goodsId;
        this.allNum = allNum;
        this.inNum = inNum;
        this.endDate = endDate;
    }

    public BiaoShuBean(String supplierName, String supplierType, String supplierSize,
                       Integer goodsId, Integer allNum, Integer inNum, LocalDate endDate, String status) {
        this.supplierName = supplierName;
        this.supplierType = supplierType;
        this.supplierSize = supplierSize;
        this.goodsId = goodsId;
        this.allNum = allNum;
        this.inNum = inNum;
        this.endDate = endDate;
        this.status = status;
    }

    public BiaoShuBean(String supplierName, String supplierType, String supplierSize, Integer goodsId, Integer allNum, Integer inNum, LocalDate endDate, String status, double price) {
        this.supplierName = supplierName;
        this.supplierType = supplierType;
        this.supplierSize = supplierSize;
        this.goodsId = goodsId;
        this.allNum = allNum;
        this.inNum = inNum;
        this.endDate = endDate;
        this.status = status;
        this.price = price;
    }

    @Override
    public String toString() {
        return "\nBiaoShuBean{" +
                "id=" + id +
                ", supplierName='" + supplierName + '\'' +
                ", supplierType='" + supplierType + '\'' +
                ", supplierSize='" + supplierSize + '\'' +
                ", goodsId=" + goodsId +
                ", allNum=" + allNum +
                ", inNum=" + inNum +
                ", endDate=" + endDate +
                ", status='" + status + '\'' +
                ", price='" + price + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierType() {
        return supplierType;
    }

    public void setSupplierType(String supplierType) {
        this.supplierType = supplierType;
    }

    public String getSupplierSize() {
        return supplierSize;
    }

    public void setSupplierSize(String supplierSize) {
        this.supplierSize = supplierSize;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getAllNum() {
        return allNum;
    }

    public void setAllNum(Integer allNum) {
        this.allNum = allNum;
    }

    public Integer getInNum() {
        return inNum;
    }

    public void setInNum(Integer inNum) {
        this.inNum = inNum;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
